
<template>
  <el-tabs type="border-card">
    <el-tab-pane :label="$t('lang.form.baseData')">
      <slot />
    </el-tab-pane>
    <el-tab-pane v-if="showInspectRecords" :label="$t('lang.form.inspectInfo')">
      <inspect-records />
    </el-tab-pane>
    <el-tab-pane v-if="showMaintHistory" :label="$t('lang.form.maintInfo')">
      <maint-history />
    </el-tab-pane>
  </el-tabs>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import InspectRecords from './components/InspectRecords.vue'
import MaintHistory from './components/MaintHistory.vue'

export default defineComponent({
  props: {
    showInspectRecords: {
      type: Boolean,
      default: false
    },
    showMaintHistory: {
      type: Boolean,
      default: false
    },
  },
  components: {
    InspectRecords,
    MaintHistory,
  },
})
</script>

<style>
</style>
